	<?php if($this->session->flashdata('error') || isset($error)): ?>
		<?php $flashData = $this->session->flashdata('error')? $this->session->flashdata('error'): array();?>
		<?php if(isset($error)):?>
		<?php $flashData = array_merge($flashData, $error);?>
		<?php endif;?>
		
		<?php foreach($flashData as $data):?>
		<div class="message_error">
			<?php echo $data; ?>
		</div>
		<?php endforeach;?>

	<?php endif; ?>	

	<?php if($this->session->flashdata('attention') || isset($attention)): ?>
		<?php $flashData = $this->session->flashdata('attention')? $this->session->flashdata('attention'): array();?>
		<?php if(isset($attention)):?>
		<?php $flashData = array_merge($flashData, $attention);?>
		<?php endif;?>

		<?php foreach($flashData as $data):?>
		<div class="message">
			<?php echo $data; ?>
		</div>
		<?php endforeach;?>

	<?php endif; ?>	

	<?php if($this->session->flashdata('success') || isset($success)): ?>
		<?php $flashData = $this->session->flashdata('success')? $this->session->flashdata('success'): array();?>
		<?php if(isset($success)):?>
		<?php $flashData = array_merge($flashData, $success);?>
		<?php endif;?>
		
		<?php foreach($flashData as $data):?>
		<div class="message_ok">
			<?php echo $data; ?>
		</div>
		<?php endforeach;?>
	<?php endif; ?>